package cn.tj212.xiaoyin.wechat.wxapi.process;

import java.io.Serializable;

/**
 * 微信公众号信息
 */
public class MpAccount implements Serializable {

    private static final long serialVersionUID = -8121022719786684782L;

    private String account;//账号

    private String appid;

    private String appsecret;

    private String url;//验证时用的url

    private String token;

    private Integer msgcount;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getAppsecret() {
        return appsecret;
    }

    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getMsgcount() {
        if (msgcount == null) {
            msgcount = 5;//默认5条
        }
        return msgcount;
    }

    public void setMsgcount(Integer msgcount) {
        this.msgcount = msgcount;
    }

    public String getToken() {
        return token;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }
}
